package cn.tedu.reflection;
public class LianXi2 {
    public static void main(String[] args) {
        St s2 =new St();
        s2.check();
    }
}
class St{
    public void check(){
        String s = "我爱我";
        StringBuilder s1 =new StringBuilder(s);
        StringBuilder s2=s1.reverse();
        if (s.equals(s2.toString())){
            System.out.println("是回文");
        }else {
            System.out.println("不是回文");
        }

    }
}
